package action.board;

import java.sql.SQLException;

import service.BoardService;
import vo.BoardListVO;

public class BoardListAction
{
	private BoardService boardService;
	private BoardListVO lvo;
	private int page = 1;
	
	public void setBoardService(BoardService boardService) {
		this.boardService = boardService;
	}
	public BoardListVO getLvo() {
		return lvo;
	}
	public void setLvo(BoardListVO lvo) {
		this.lvo = lvo;
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public String execute() throws SQLException
	{
		lvo = boardService.getAllBoard(page);
		
		return "success";
	}
}